/**
 * Copyright (C)  2011  chen wei hua.
 * Permission is granted to copy, distribute and/or modify this document
 * under the terms of the GNU Free Documentation License, Version 2.0
 * or any later version published by the Free Software Foundation;
 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 * A copy of the license is included in the section entitled "GNU Free Documentation License".
 */
package com.javaeye.plan.dto;

import java.util.List;

import com.javaeye.common.dto.DTO;
import com.javaeye.store.dto.MaterialsBatchDetail;

public class MaterialRequisiteFormDetail implements DTO {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8785936138754021678L;
	
	private int id;
	
	private int materialId;
	
	private String materialName;
	
	private String materialRootCategory;
	
	private String materialCategory;
	
	private String materialType;
	
	private String materialSku;
	
	private String materialNo;
	
	private String customNo;
	
	private String unit;
	
	private float number;
	
	private float realNumber;
	
	/**
	 * 领料单的退货数量
	 * 退料单的最大退料数量
	 */
	private float backNumber;
	
	private MaterialRequisiteForm form;
	
	private List<MaterialsBatchDetail> batchInfos;
	
	public MaterialRequisiteFormDetail copy() {
		MaterialRequisiteFormDetail detail = new MaterialRequisiteFormDetail();
		detail.materialId = materialId;
		detail.materialName = materialName;
		detail.materialRootCategory = materialRootCategory;
		detail.materialCategory = materialCategory;
		detail.materialType = materialType;
		detail.materialNo = materialNo;
		detail.customNo = customNo;
		detail.unit = unit;
		detail.number = number;
		detail.realNumber = realNumber;
		detail.backNumber = backNumber;
		detail.materialSku = materialSku;
		return detail;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCustomNo() {
		return customNo;
	}

	public void setCustomNo(String customNo) {
		this.customNo = customNo;
	}

	public float getNumber() {
		return number;
	}

	public void setNumber(float number) {
		this.number = number;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public void setForm(MaterialRequisiteForm form) {
		this.form = form;
	}
	
	public MaterialRequisiteForm getForm() {
		return form;
	}

	public int getMaterialId() {
		return materialId;
	}

	public void setMaterialId(int materialId) {
		this.materialId = materialId;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	public String getMaterialRootCategory() {
		return materialRootCategory;
	}

	public void setMaterialRootCategory(String materialRootCategory) {
		this.materialRootCategory = materialRootCategory;
	}

	public String getMaterialCategory() {
		return materialCategory;
	}

	public void setMaterialCategory(String materialCategory) {
		this.materialCategory = materialCategory;
	}

	public String getMaterialType() {
		return materialType;
	}

	public void setMaterialType(String materialType) {
		this.materialType = materialType;
	}

	public String getMaterialNo() {
		return materialNo;
	}

	public void setMaterialNo(String materialNo) {
		this.materialNo = materialNo;
	}
	
	public void setBatchInfos(List<MaterialsBatchDetail> batchInfos) {
		this.batchInfos = batchInfos;
	}

	public List<MaterialsBatchDetail> getBatchInfos() {
		return batchInfos;
	}

	public void setRealNumber(float realNumber) {
		this.realNumber = realNumber;
	}

	public float getRealNumber() {
		return realNumber;
	}

	public void setMaterialSku(String materialSku) {
		this.materialSku = materialSku;
	}

	public String getMaterialSku() {
		return materialSku;
	}

	public float getBackNumber() {
		return backNumber;
	}

	public void setBackNumber(float backNumber) {
		this.backNumber = backNumber;
	}
	
}
